package com.itheima.zuoye.zy2.zy2_3;

public class Test {
    public static void main(String[] args) throws InterruptedException {
        MyRunnable task = new MyRunnable();

        Thread t1 = new Thread(task, "抽奖箱1");
        Thread t2 = new Thread(task, "抽奖箱2");
        t1.start();
        t2.start();
        t1.join();
        t2.join();
        // 最后打印最大奖项信息
        MyRunnable.printMaxPrizeInfo();
    }
}